﻿using System;
using System.Collections.Generic;
 
using System.Text;

namespace GGSharp.Packets
{
    public class XMLEventPacket : HeaderPacket
    {
        protected string _xml;

        public XMLEventPacket()
        {
            this.Type = PacketType.GG_XML_EVENT;
        }

        public string XML
        {
            get { return _xml; }
        }

        public override void Read(System.IO.BinaryReader reader)
        {
            base.Read(reader);
            _xml = ReadUTF8Text(reader, this.Length);
        }
    }
}
